<%inherit file="base.html"/>
<h2>
    ${_('Create a group')}
</h2>
<div id="mainPanel">
    <div class="section" id="info">
        <h3>
            ${_('Create new group')}
            <span class="inlineNav">
                <a href="http://admin.hexlabel.net/groups/">^ ${_('Back')}</a>
            </span>
        </h3>
        % if errors:
            <div class="alert">${message}</div>
        % endif
        <div class="intro">
            <p>${_('A group is a social construct that lets its members collaborate on shared content.')}</p>
            <p>${_('The membership is always public, but the content need not be.')}</p>
            <p class="warning">${_('<strong>Note:</strong> Adding members to the group requires emailing invitation codes to people.') |n}</p>
        </div>
        <form id="createGroupForm" action="/create_group/" method="post">
            <dl class="generic">
                <dt><label for="${profile_fields['generic']['name']['values'][0]['id']}">${profile_fields['generic']['name']['meta']['label']}</label></dt>
                <dd>
                    <input type="text" class="text" name="${profile_fields['generic']['name']['values'][0]['id']}" id="${profile_fields['generic']['name']['values'][0]['id']}" value="${profile_fields['generic']['name']['values'][0]['value']}"/>
                </dd>
                <dt><label for="${profile_fields['generic']['about']['values'][0]['id']}">${profile_fields['generic']['about']['meta']['label']}</label></dt>
                <dd>
                    <textarea class="text" rows="6" cols="20" name="${profile_fields['generic']['about']['values'][0]['id']}" id="${profile_fields['generic']['about']['values'][0]['id']}">${profile_fields['generic']['about']['values'][0]['value']}</textarea>
                    <input type="hidden" name="public_link" value="on"/>
                </dd>
            </dl>
            <dl>
                <dd class="buttons">
                    <input type="submit" class="submit default" value="${_('Save')}"/>
                </dd>
                <dd class="buttons cancel">
                    <a href="http://admin.hexlabel.net/groups/" class="button">${_('Cancel')}</a>
                </dd>
            </dl>
            <div class="clr"><br/></div>
        </form>
    </div>
</div>

<!-- defs -->
<%def name="title()">P2P Fusion - Peerscape | ${_('Create new group')}</%def>
<%def name="body_class()">
    admin self person
</%def>
<%def name="toplinks_style()">
</%def>

